package com.jevons.muffin.event;

/**
 * Copyright 2020 JxGIS
 *
 * @file BaseActionEvent
 * @auth linaisheng
 * Created on 2021/6/29.
 * Description：
 */
public class BaseActionEvent<T extends IActionEvent> {

    private T data;

    private BaseActionEvent(T data) {
        this.data = data;
    }

    public T getData() {
        return data;
    }

    public static <T extends IActionEvent> BaseActionEvent<T> create(T data) {
        return new BaseActionEvent(data);
    }

}
